#include "lvgl.h"
#include <stdio.h>
#include "gui_guider.h"
#include "events_init.h"
#include "widgets_init.h"
#include "custom.h"
#include "app_lvglDeal.h"

lv_obj_t *LVGL_labels[6][6];
lv_obj_t *create_label_info(lv_obj_t *parent, lv_obj_t *label, char *txt, const lv_font_t *font, lv_coord_t x, lv_coord_t y, lv_coord_t w, lv_coord_t h, uint8_t initFlag)
{
    if (!initFlag)
    {
        label = lv_label_create(parent);
        lv_obj_set_style_text_font(label, font, LV_PART_MAIN | LV_STATE_DEFAULT);
        lv_label_set_long_mode(label, LV_LABEL_LONG_WRAP);
        lv_obj_set_pos(label, x, y);
        lv_obj_set_size(label, w, h);
        lv_obj_set_style_border_width(label, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
        lv_obj_set_style_radius(label, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
        lv_obj_set_style_text_color(label, lv_color_hex(0x000000), LV_PART_MAIN | LV_STATE_DEFAULT);
        lv_obj_set_style_text_opa(label, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
        lv_obj_set_style_text_letter_space(label, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
        lv_obj_set_style_text_line_space(label, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
        lv_obj_set_style_text_align(label, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN | LV_STATE_DEFAULT);
        lv_obj_set_style_bg_opa(label, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
        lv_obj_set_style_pad_top(label, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
        lv_obj_set_style_pad_right(label, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
        lv_obj_set_style_pad_bottom(label, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
        lv_obj_set_style_pad_left(label, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_width(label, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
    }
    if (label != NULL)
    {
        lv_label_set_text(label, txt);
    }
    return label;
}

lv_obj_t *create_contSet_info(lv_obj_t *parent, lv_obj_t *cont, lv_color_t value, lv_coord_t x, lv_coord_t y, lv_coord_t w, lv_coord_t h, uint8_t initFlag)
{
    if (!initFlag)
    {
        cont = lv_obj_create(parent);
        lv_obj_set_pos(cont, x, y);
        lv_obj_set_size(cont, w, h);
        lv_obj_set_scrollbar_mode(cont, LV_SCROLLBAR_MODE_OFF);
        lv_obj_set_style_border_width(cont, 2, LV_PART_MAIN | LV_STATE_DEFAULT);
        lv_obj_set_style_border_opa(cont, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
        lv_obj_set_style_border_color(cont, lv_color_hex(0x000000), LV_PART_MAIN | LV_STATE_DEFAULT);
        lv_obj_set_style_border_side(cont, LV_BORDER_SIDE_FULL, LV_PART_MAIN | LV_STATE_DEFAULT);
        lv_obj_set_style_radius(cont, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
        lv_obj_set_style_bg_opa(cont, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
        lv_obj_set_style_bg_grad_dir(cont, LV_GRAD_DIR_NONE, LV_PART_MAIN | LV_STATE_DEFAULT);
        lv_obj_set_style_pad_top(cont, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
        lv_obj_set_style_pad_bottom(cont, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
        lv_obj_set_style_pad_left(cont, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
        lv_obj_set_style_pad_right(cont, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
        lv_obj_set_style_shadow_width(cont, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
    }
    if (cont != NULL)
    {
        lv_obj_set_style_bg_color(cont, value, LV_PART_MAIN | LV_STATE_DEFAULT);
    }
    return cont;
}

void setup_scr_screen_nodeinfo(lv_ui *ui)
{
    ui->screen_nodeinfo = lv_obj_create(NULL);
    lv_obj_set_size(ui->screen_nodeinfo, 480, 320);
    lv_obj_set_scrollbar_mode(ui->screen_nodeinfo, LV_SCROLLBAR_MODE_OFF);
    lv_obj_set_style_bg_opa(ui->screen_nodeinfo, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->screen_nodeinfo, lv_color_hex(0x9efff6), LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->screen_nodeinfo, LV_GRAD_DIR_NONE, LV_PART_MAIN | LV_STATE_DEFAULT);

    // Write codes screen_nodeinfo_cont_1
    ui->screen_nodeinfo_cont_1 = create_contSet_info(ui->screen_nodeinfo, ui->screen_nodeinfo_cont_1, lv_color_hex(0x9efff6), 0, 0, 160, 140, 0);
    ui->screen_nodeinfo_label_19 = create_label_info(ui->screen_nodeinfo_cont_1, ui->screen_nodeinfo_label_19, "01", &lv_font_SourceHanSerifSC_Regular_26, 4, 4, 32, 27, 0);   // 序号
    ui->screen_nodeinfo_label_1 = create_label_info(ui->screen_nodeinfo_cont_1, ui->screen_nodeinfo_label_1, "", &lv_font_SourceHanSerifSC_Regular_26, 34, 27, 71, 27, 0);     // 温度
    ui->screen_nodeinfo_label_2 = create_label_info(ui->screen_nodeinfo_cont_1, ui->screen_nodeinfo_label_2, "", &lv_font_SourceHanSerifSC_Regular_26, 46, 55, 56, 26, 0);     // 湿度
    ui->screen_nodeinfo_label_30 = create_label_info(ui->screen_nodeinfo_cont_1, ui->screen_nodeinfo_label_30, "", &lv_font_SourceHanSerifSC_Regular_16, 37, 4, 90, 16, 0);    // 设备号
    ui->screen_nodeinfo_label_3 = create_label_info(ui->screen_nodeinfo_cont_1, ui->screen_nodeinfo_label_3, "", &lv_font_SourceHanSerifSC_Regular_16, 40, 95, 64, 18, 0);     // 设备状态
    ui->screen_nodeinfo_label_35 = create_label_info(ui->screen_nodeinfo_cont_1, ui->screen_nodeinfo_label_35, "", &lv_font_SourceHanSerifSC_Regular_12, 14, 120, 129, 14, 0); // 节点时间

    // Write codes screen_nodeinfo_cont_2
    ui->screen_nodeinfo_cont_2 = create_contSet_info(ui->screen_nodeinfo, ui->screen_nodeinfo_cont_2, lv_color_hex(0x9efff6), 160, 0, 160, 140, 0);
    ui->screen_nodeinfo_label_20 = create_label_info(ui->screen_nodeinfo_cont_2, ui->screen_nodeinfo_label_20, "02", &lv_font_SourceHanSerifSC_Regular_26, 4, 4, 32, 27, 0);   // 序号
    ui->screen_nodeinfo_label_5 = create_label_info(ui->screen_nodeinfo_cont_2, ui->screen_nodeinfo_label_5, "", &lv_font_SourceHanSerifSC_Regular_26, 34, 27, 71, 27, 0);     // 温度
    ui->screen_nodeinfo_label_6 = create_label_info(ui->screen_nodeinfo_cont_2, ui->screen_nodeinfo_label_6, "", &lv_font_SourceHanSerifSC_Regular_26, 46, 55, 56, 26, 0);     // 湿度
    ui->screen_nodeinfo_label_29 = create_label_info(ui->screen_nodeinfo_cont_2, ui->screen_nodeinfo_label_29, "", &lv_font_SourceHanSerifSC_Regular_16, 37, 4, 90, 16, 0);    // 设备号
    ui->screen_nodeinfo_label_4 = create_label_info(ui->screen_nodeinfo_cont_2, ui->screen_nodeinfo_label_4, "", &lv_font_SourceHanSerifSC_Regular_16, 40, 95, 64, 18, 0);     // 设备状态
    ui->screen_nodeinfo_label_37 = create_label_info(ui->screen_nodeinfo_cont_2, ui->screen_nodeinfo_label_37, "", &lv_font_SourceHanSerifSC_Regular_12, 14, 120, 129, 14, 0); // 节点时间

    // Write codes screen_nodeinfo_cont_3
    ui->screen_nodeinfo_cont_3 = create_contSet_info(ui->screen_nodeinfo, ui->screen_nodeinfo_cont_3, lv_color_hex(0x9efff6), 320, 0, 160, 140, 0);
    ui->screen_nodeinfo_label_25 = create_label_info(ui->screen_nodeinfo_cont_3, ui->screen_nodeinfo_label_25, "03", &lv_font_SourceHanSerifSC_Regular_26, 4, 4, 32, 27, 0);   // 序号
    ui->screen_nodeinfo_label_8 = create_label_info(ui->screen_nodeinfo_cont_3, ui->screen_nodeinfo_label_8, "", &lv_font_SourceHanSerifSC_Regular_26, 34, 27, 71, 27, 0);     // 温度
    ui->screen_nodeinfo_label_7 = create_label_info(ui->screen_nodeinfo_cont_3, ui->screen_nodeinfo_label_7, "", &lv_font_SourceHanSerifSC_Regular_26, 46, 55, 56, 26, 0);     // 湿度
    ui->screen_nodeinfo_label_31 = create_label_info(ui->screen_nodeinfo_cont_3, ui->screen_nodeinfo_label_31, "", &lv_font_SourceHanSerifSC_Regular_16, 37, 4, 90, 16, 0);    // 设备号
    ui->screen_nodeinfo_label_9 = create_label_info(ui->screen_nodeinfo_cont_3, ui->screen_nodeinfo_label_9, "", &lv_font_SourceHanSerifSC_Regular_16, 40, 95, 64, 18, 0);     // 设备状态
    ui->screen_nodeinfo_label_38 = create_label_info(ui->screen_nodeinfo_cont_3, ui->screen_nodeinfo_label_38, "", &lv_font_SourceHanSerifSC_Regular_12, 14, 120, 129, 14, 0); // 节点时间

    // Write codes screen_nodeinfo_cont_4
    ui->screen_nodeinfo_cont_4 = create_contSet_info(ui->screen_nodeinfo, ui->screen_nodeinfo_cont_4, lv_color_hex(0x9efff6), 0, 140, 160, 140, 0);
    ui->screen_nodeinfo_label_26 = create_label_info(ui->screen_nodeinfo_cont_4, ui->screen_nodeinfo_label_26, "04", &lv_font_SourceHanSerifSC_Regular_26, 4, 4, 32, 27, 0);   // 序号
    ui->screen_nodeinfo_label_11 = create_label_info(ui->screen_nodeinfo_cont_4, ui->screen_nodeinfo_label_11, "", &lv_font_SourceHanSerifSC_Regular_26, 34, 27, 71, 27, 0);   // 温度
    ui->screen_nodeinfo_label_14 = create_label_info(ui->screen_nodeinfo_cont_4, ui->screen_nodeinfo_label_14, "", &lv_font_SourceHanSerifSC_Regular_26, 46, 55, 56, 26, 0);   // 湿度
    ui->screen_nodeinfo_label_32 = create_label_info(ui->screen_nodeinfo_cont_4, ui->screen_nodeinfo_label_32, "", &lv_font_SourceHanSerifSC_Regular_16, 37, 4, 90, 16, 0);    // 设备号
    ui->screen_nodeinfo_label_10 = create_label_info(ui->screen_nodeinfo_cont_4, ui->screen_nodeinfo_label_10, "", &lv_font_SourceHanSerifSC_Regular_16, 40, 95, 64, 18, 0);   // 设备状态
    ui->screen_nodeinfo_label_36 = create_label_info(ui->screen_nodeinfo_cont_4, ui->screen_nodeinfo_label_36, "", &lv_font_SourceHanSerifSC_Regular_12, 14, 120, 129, 14, 0); // 节点时间

    // Write codes screen_nodeinfo_cont_5
    ui->screen_nodeinfo_cont_5 = create_contSet_info(ui->screen_nodeinfo, ui->screen_nodeinfo_cont_5, lv_color_hex(0x9efff6), 160, 140, 160, 140, 0);
    ui->screen_nodeinfo_label_27 = create_label_info(ui->screen_nodeinfo_cont_5, ui->screen_nodeinfo_label_27, "05", &lv_font_SourceHanSerifSC_Regular_26, 4, 4, 32, 27, 0);   // 序号
    ui->screen_nodeinfo_label_12 = create_label_info(ui->screen_nodeinfo_cont_5, ui->screen_nodeinfo_label_12, "", &lv_font_SourceHanSerifSC_Regular_26, 34, 27, 71, 27, 0);   // 温度
    ui->screen_nodeinfo_label_15 = create_label_info(ui->screen_nodeinfo_cont_5, ui->screen_nodeinfo_label_15, "", &lv_font_SourceHanSerifSC_Regular_26, 46, 55, 56, 26, 0);   // 湿度
    ui->screen_nodeinfo_label_33 = create_label_info(ui->screen_nodeinfo_cont_5, ui->screen_nodeinfo_label_33, "", &lv_font_SourceHanSerifSC_Regular_16, 37, 4, 90, 16, 0);    // 设备号
    ui->screen_nodeinfo_label_17 = create_label_info(ui->screen_nodeinfo_cont_5, ui->screen_nodeinfo_label_17, "", &lv_font_SourceHanSerifSC_Regular_16, 40, 95, 64, 18, 0);   // 设备状态
    ui->screen_nodeinfo_label_39 = create_label_info(ui->screen_nodeinfo_cont_5, ui->screen_nodeinfo_label_39, "", &lv_font_SourceHanSerifSC_Regular_12, 14, 120, 129, 14, 0); // 节点时间

    // Write codes screen_nodeinfo_cont_6
    ui->screen_nodeinfo_cont_6 = create_contSet_info(ui->screen_nodeinfo, ui->screen_nodeinfo_cont_6, lv_color_hex(0x9efff6), 320, 140, 160, 140, 0);
    ui->screen_nodeinfo_label_28 = create_label_info(ui->screen_nodeinfo_cont_6, ui->screen_nodeinfo_label_28, "06", &lv_font_SourceHanSerifSC_Regular_26, 4, 4, 32, 27, 0);   // 序号
    ui->screen_nodeinfo_label_13 = create_label_info(ui->screen_nodeinfo_cont_6, ui->screen_nodeinfo_label_13, "", &lv_font_SourceHanSerifSC_Regular_26, 34, 27, 71, 27, 0);   // 温度
    ui->screen_nodeinfo_label_16 = create_label_info(ui->screen_nodeinfo_cont_6, ui->screen_nodeinfo_label_16, "", &lv_font_SourceHanSerifSC_Regular_26, 46, 55, 56, 26, 0);   // 湿度
    ui->screen_nodeinfo_label_34 = create_label_info(ui->screen_nodeinfo_cont_6, ui->screen_nodeinfo_label_34, "", &lv_font_SourceHanSerifSC_Regular_16, 37, 4, 90, 16, 0);    // 设备号
    ui->screen_nodeinfo_label_18 = create_label_info(ui->screen_nodeinfo_cont_6, ui->screen_nodeinfo_label_18, "", &lv_font_SourceHanSerifSC_Regular_16, 40, 95, 64, 18, 0);   // 设备状态
    ui->screen_nodeinfo_label_40 = create_label_info(ui->screen_nodeinfo_cont_6, ui->screen_nodeinfo_label_40, "", &lv_font_SourceHanSerifSC_Regular_12, 14, 120, 129, 14, 0); // 节点时间

    LVGL_labels[0][0] = ui->screen_nodeinfo_label_19;
    LVGL_labels[0][1] = ui->screen_nodeinfo_label_1;
    LVGL_labels[0][2] = ui->screen_nodeinfo_label_2;
    LVGL_labels[0][3] = ui->screen_nodeinfo_label_30;
    LVGL_labels[0][4] = ui->screen_nodeinfo_label_3;
    LVGL_labels[0][5] = ui->screen_nodeinfo_label_35;

    LVGL_labels[1][0] = ui->screen_nodeinfo_label_20;
    LVGL_labels[1][1] = ui->screen_nodeinfo_label_5;
    LVGL_labels[1][2] = ui->screen_nodeinfo_label_6;
    LVGL_labels[1][3] = ui->screen_nodeinfo_label_29;
    LVGL_labels[1][4] = ui->screen_nodeinfo_label_4;
    LVGL_labels[1][5] = ui->screen_nodeinfo_label_37;

    LVGL_labels[2][0] = ui->screen_nodeinfo_label_25;
    LVGL_labels[2][1] = ui->screen_nodeinfo_label_8;
    LVGL_labels[2][2] = ui->screen_nodeinfo_label_7;
    LVGL_labels[2][3] = ui->screen_nodeinfo_label_31;
    LVGL_labels[2][4] = ui->screen_nodeinfo_label_9;
    LVGL_labels[2][5] = ui->screen_nodeinfo_label_38;

    LVGL_labels[3][0] = ui->screen_nodeinfo_label_26;
    LVGL_labels[3][1] = ui->screen_nodeinfo_label_11;
    LVGL_labels[3][2] = ui->screen_nodeinfo_label_14;
    LVGL_labels[3][3] = ui->screen_nodeinfo_label_32;
    LVGL_labels[3][4] = ui->screen_nodeinfo_label_10;
    LVGL_labels[3][5] = ui->screen_nodeinfo_label_36;

    LVGL_labels[4][0] = ui->screen_nodeinfo_label_27;
    LVGL_labels[4][1] = ui->screen_nodeinfo_label_12;
    LVGL_labels[4][2] = ui->screen_nodeinfo_label_15;
    LVGL_labels[4][3] = ui->screen_nodeinfo_label_33;
    LVGL_labels[4][4] = ui->screen_nodeinfo_label_17;
    LVGL_labels[4][5] = ui->screen_nodeinfo_label_39;

    LVGL_labels[5][0] = ui->screen_nodeinfo_label_28;
    LVGL_labels[5][1] = ui->screen_nodeinfo_label_13;
    LVGL_labels[5][2] = ui->screen_nodeinfo_label_16;
    LVGL_labels[5][3] = ui->screen_nodeinfo_label_34;
    LVGL_labels[5][4] = ui->screen_nodeinfo_label_18;
    LVGL_labels[5][5] = ui->screen_nodeinfo_label_40;

    // Write codes screen_nodeinfo_btn_1
    ui->screen_nodeinfo_btn_1 = lv_btn_create(ui->screen_nodeinfo);
    ui->screen_nodeinfo_btn_1_label = lv_label_create(ui->screen_nodeinfo_btn_1);
    lv_label_set_text(ui->screen_nodeinfo_btn_1_label, "返回");
    lv_label_set_long_mode(ui->screen_nodeinfo_btn_1_label, LV_LABEL_LONG_WRAP);
    lv_obj_align(ui->screen_nodeinfo_btn_1_label, LV_ALIGN_CENTER, 0, 0);
    lv_obj_set_style_pad_all(ui->screen_nodeinfo_btn_1, 0, LV_STATE_DEFAULT);
    lv_obj_set_width(ui->screen_nodeinfo_btn_1_label, LV_PCT(100));
    lv_obj_set_pos(ui->screen_nodeinfo_btn_1, 10, 285);
    lv_obj_set_size(ui->screen_nodeinfo_btn_1, 63, 30);

    // Write style for screen_nodeinfo_btn_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_bg_opa(ui->screen_nodeinfo_btn_1, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->screen_nodeinfo_btn_1, lv_color_hex(0x2195f6), LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->screen_nodeinfo_btn_1, LV_GRAD_DIR_NONE, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_border_width(ui->screen_nodeinfo_btn_1, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->screen_nodeinfo_btn_1, 5, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->screen_nodeinfo_btn_1, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->screen_nodeinfo_btn_1, lv_color_hex(0xffffff), LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->screen_nodeinfo_btn_1, &lv_font_SourceHanSerifSC_Regular_16, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui->screen_nodeinfo_btn_1, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->screen_nodeinfo_btn_1, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN | LV_STATE_DEFAULT);
    // Write codes screen_nodeinfo_btn_2
    ui->screen_nodeinfo_btn_2 = lv_btn_create(ui->screen_nodeinfo);
    ui->screen_nodeinfo_btn_2_label = lv_label_create(ui->screen_nodeinfo_btn_2);
    lv_label_set_text(ui->screen_nodeinfo_btn_2_label, "NEXT");
    lv_label_set_long_mode(ui->screen_nodeinfo_btn_2_label, LV_LABEL_LONG_WRAP);
    lv_obj_align(ui->screen_nodeinfo_btn_2_label, LV_ALIGN_CENTER, 0, 0);
    lv_obj_set_style_pad_all(ui->screen_nodeinfo_btn_2, 0, LV_STATE_DEFAULT);
    lv_obj_set_width(ui->screen_nodeinfo_btn_2_label, LV_PCT(100));
    lv_obj_set_pos(ui->screen_nodeinfo_btn_2, 410, 285);
    lv_obj_set_size(ui->screen_nodeinfo_btn_2, 63, 30);

    // Write style for screen_nodeinfo_btn_2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_bg_opa(ui->screen_nodeinfo_btn_2, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->screen_nodeinfo_btn_2, lv_color_hex(0x2195f6), LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->screen_nodeinfo_btn_2, LV_GRAD_DIR_NONE, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_border_width(ui->screen_nodeinfo_btn_2, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->screen_nodeinfo_btn_2, 5, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->screen_nodeinfo_btn_2, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->screen_nodeinfo_btn_2, lv_color_hex(0xffffff), LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->screen_nodeinfo_btn_2, &lv_font_SourceHanSerifSC_Regular_16, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui->screen_nodeinfo_btn_2, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->screen_nodeinfo_btn_2, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN | LV_STATE_DEFAULT);

    // Write codes screen_nodeinfo_btn_3
    ui->screen_nodeinfo_btn_3 = lv_btn_create(ui->screen_nodeinfo);
    ui->screen_nodeinfo_btn_3_label = lv_label_create(ui->screen_nodeinfo_btn_3);
    lv_label_set_text(ui->screen_nodeinfo_btn_3_label, "LAST");
    lv_label_set_long_mode(ui->screen_nodeinfo_btn_3_label, LV_LABEL_LONG_WRAP);
    lv_obj_align(ui->screen_nodeinfo_btn_3_label, LV_ALIGN_CENTER, 0, 0);
    lv_obj_set_style_pad_all(ui->screen_nodeinfo_btn_3, 0, LV_STATE_DEFAULT);
    lv_obj_set_width(ui->screen_nodeinfo_btn_3_label, LV_PCT(100));
    lv_obj_set_pos(ui->screen_nodeinfo_btn_3, 340, 285);
    lv_obj_set_size(ui->screen_nodeinfo_btn_3, 63, 30);

    // Write style for screen_nodeinfo_btn_3, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_bg_opa(ui->screen_nodeinfo_btn_3, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->screen_nodeinfo_btn_3, lv_color_hex(0x2195f6), LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->screen_nodeinfo_btn_3, LV_GRAD_DIR_NONE, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_border_width(ui->screen_nodeinfo_btn_3, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->screen_nodeinfo_btn_3, 5, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->screen_nodeinfo_btn_3, 0, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->screen_nodeinfo_btn_3, lv_color_hex(0xffffff), LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->screen_nodeinfo_btn_3, &lv_font_SourceHanSerifSC_Regular_16, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui->screen_nodeinfo_btn_3, 255, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->screen_nodeinfo_btn_3, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN | LV_STATE_DEFAULT);
    lv_obj_add_flag(ui->screen_nodeinfo_btn_3, LV_OBJ_FLAG_HIDDEN);
    // Update current screen layout.
    lv_obj_update_layout(ui->screen_nodeinfo);

    // Init events for screen.
    events_init_screen_nodeinfo(ui);
}
